home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / graphics / n-z / raystorexa / arexx / bump.ray < prev    next >
Text File  |  1995-10-16  |  1KB  |  59 lines

  1. /***************
  2.  * NAME:          bump.ray
  3.  * VERSION:       1.0 12.07.1995
  4.  * DESCRIPTION:   Test of bump texture
  5.  * AUTHORS:       Andreas Heumann
  6.  * BUGS:          none
  7.  * TO DO:         none
  8.  * HISTORY:
  9.  *    DATE     NAME  COMMENT
  10.  *    12.07.95 ah    initial release
  11.  ***************/
  12.  
  13. signal on error
  14.  
  15. options results
  16.  
  17. IF ~show('P','RAYSTORM') THEN DO
  18.    address COMMAND 'run >NIL: <NIL: /RayStorm'
  19.    address COMMAND WaitForPort RAYSTORM
  20. END  
  21.  
  22. address RAYSTORM
  23.  
  24. 'TEXTUREPATH /textures'
  25.  
  26. 'SETSCREEN 100 100'
  27. 'SETCAMERA <5,10,-25> <0,0,0> <0,1,0> 20 20'
  28. 'SETWORLD [0,0,0] [20,20,20]'
  29. 'POINTLIGHT <20,20,-40> SHADOW'
  30.  
  31. 'NEWSURFACE MAP'
  32. 'DIFFUSE [200,100,20]'
  33. 'SPECULAR [0,0,0]'
  34. 'IMTEXTURE bump.itx <0,0,0> <0,0,0> <.002,.002,.002> 1 1 1'
  35.  
  36. 'SPHERE MAP <0,0,0> 2'
  37.  
  38. 'NEWSURFACE MAP1'
  39. 'DIFFUSE [20,100,200]'
  40. 'SPECULAR [0,0,0]'
  41. 'REFLECT [100,100,100]'
  42. 'IMTEXTURE bump.itx <0,0,0> <0,0,0> <.01,.01,.01> 1 1 1'
  43.  
  44. 'PLANE MAP1 <0,-2,0> <0,1,0>'
  45.  
  46. 'STARTRENDER QUICK'
  47.  
  48. 'SAVEPIC bump.iff'
  49.  
  50. 'CLEANUP'
  51.  
  52. exit 0
  53.  
  54. error:
  55. say "Error" rc "in line" sigl ":"
  56. GETERRORSTR rc
  57. say result
  58. exit 0
  59.